// pages/content/content.js
const http=require('../../modules/HTTP')
Page({

  data: {
    content:{}
  },
  onLoad: function (options) {
    var id=options.id;
    var pic=unescape(options.pic);
    var This=this;
    (async function(){
      var res=await http.getContent(id);
      console.log(res)
      var content={};
      content.pic=pic;
      content.name=res.data.title;
      content.scenario=res.data.summary
      This.setData({
        content
      })
    })()

  },


})